/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package EnigmaUtils;

import Model.EnigmaModel;
import java.util.TimerTask;

/**
 *
 * @author Snowangelic
 */
public class UpdateTask extends TimerTask {
    EnigmaModel model;
    long dtime;

    UpdateTask(EnigmaModel model,long dtime){
        this.model=model;
        this.dtime=dtime;
    }

    public void run(){
        model.update(dtime);
    }

}
